﻿<%@ Page Title="" Language="C#" MasterPageFile="~/EditPages/Popup.Master" AutoEventWireup="true" CodeBehind="PrintHandler.aspx.cs" Inherits="WebUI.EditPages.PrintHandler" Theme="POSSystem" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PopupHeadHolder" runat="server">
    <script type="text/javascript">
        function showScroller(visible) {
            var divScroller = document.getElementById("<%= printContent.ClientID %>");
            if (!visible) {
                divScroller.style.overflowX = "";
                divScroller.style.overflowY = "";
                divScroller.style.height = "auto";
            }
            else {
                divScroller.style.overflowX = "hidden";
                divScroller.style.overflowY = "scroll";
                divScroller.style.height = "540px";
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PopupToolbarHolder" runat="server">
    <table class="popuptoolbar" width="100%">
        <tr>
            <td style="vertical-align:middle; text-align:left">
                <asp:LinkButton class="tbbutton" ID="btnPrint" runat="server" OnClientClick="showScroller(false); fprint(); showScroller(true); return false;">
                    <img src="../Images/print.gif" /><asp:Label ID="label1" runat="server" Text="Print"></asp:Label>
                </asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PopupContentHolder" runat="server">
    <asp:Panel ID="printContent" runat="server" style='overflow-y:scroll; overflow-x:hidden; height:540px; width:100%'>
    </asp:Panel>
</asp:Content>
